package com.bristua.mall.user.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.user.biz.AddUserBankBiz;
import com.bristua.mall.user.model.TUserBank;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/3/24.
 */
@RestController
@Api(value="增加银行卡",tags={"增加银行卡"})
public class AddUserBankController {
    @Autowired
    private AddUserBankBiz addUserBankBiz;
    @PostMapping(value="/api/user/bank/add")
    @ApiOperation(value="增加银行卡")
    public Result addUserBank(@RequestBody TUserBank tUserBank){
        addUserBankBiz.addUserBank(tUserBank);
        return HandleResultUtil.addSuccessResult();
    }

}
